-- GENERATED SPELL FOR [Putridus the Ancient] --


function spell0_32487(pUnit, Event) --@Putrid Punt,n/a--
pUnit:FullCastSpellOnTarget(61080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32487', 615, 1)
end

function spell1_32487(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(41534,pUnit)
pUnit:RegisterEvent('Sorts_32487', 5322, 1)
end

function Sorts_32487(pUnit, Event)
local choix_sorts_32487 = math.random(0, 1)
if choix_sorts_32487 == 0 then
pUnit:RegisterEvent('spell0_32487', 1, 1)
end
if choix_sorts_32487 == 1 then
pUnit:RegisterEvent('spell1_32487', 1, 1)
end
end

function mob32487_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32487', math.random(1500, 3000), 1)
end

function mob32487_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32487_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32487_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32487, 1, 'mob32487_Action')
RegisterUnitEvent(32487, 2, 'mob32487_Leave')
RegisterUnitEvent(32487, 3, 'mob32487_Kill')
RegisterUnitEvent(32487, 4, 'mob32487_Die')
